<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<style>
/* setInterval:实现图片轮播 */
    div{
        width: 900px;
        height: 600px;
    }
</style>

<body>
    <div>
        <img src="./src=http___tfsimg.yccdn.com_bdc_app-deploy_bi_autoreport_1556562816_1556562816.22.png&refer=http___tfsimg.yccdn.webp" style="width: 1000px; ;height: 700px;">
    </div>
    <script>
        var img = document.getElementsByTagName('img')[0];
        const imgArr = ['1668355376377.png', '1668355436006.png', '1668355502598.png'];
        var count = 0;

        function fn() {
            if(count<5){
                count++;
            }else{
                count = 0;
            }
            
            img.src = './img/' + imgArr[count];
            return setTimeout(fn, 3000);
        }
        setTimeout(fn, 3000);
    </script>
</body>
</html>